home *** CD-ROM | disk | FTP | other *** search
- program main;
- uses fgmain, fgmisc;
-
- const
- ESC = 27;
-
- var
- color : integer;
- old_mode : integer;
- key, aux : byte;
-
- begin
- old_mode := fg_getmode;
- fg_setmode(fg_automode);
- color := 0;
-
- fg_musicb('O4 L16 CC#DD#EFF#GG#AA#B O+ CC#DD#EFF#GG#AA#B$',-1);
-
- while (fg_playing = 1) do
- begin
- color := (color + 1) and 15;
- fg_setcolor(color);
- fg_rect(0,fg_getmaxx,0,fg_getmaxy);
-
- fg_waitfor(4);
- fg_intkey(key,aux);
- if (key = ESC) then
- fg_hush
- else if (key+aux <> 0) then
- fg_hushnext;
- end;
-
- fg_setmode(old_mode);
- fg_reset;
- end.